//
//  Stereo.m
//  CommandPattern
//
//  Created by ying on 2017/11/29.
//  Copyright © 2017年 SUIRUI. All rights reserved.
//

#import "Stereo.h"

@implementation Stereo

- (instancetype)initWithName:(NSString *)name{
    self = [super init];
    if (self) {
        self.stereoName = name;
    }
    return self;
}

- (void)stereoOn{
    NSString *onStr = [NSString stringWithFormat:@"%@开唱",self.stereoName];
    NSLog(@"%@",onStr);
}

- (void)stereoOff{
    NSString *offStr = [NSString stringWithFormat:@"%@停止",self.stereoName];
    NSLog(@"%@",offStr);
}

@end
